<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    div {
      width: 50px;
      height: 50px;
      border-radius: 50%;
      position: absolute;
      background-color: red;
    }
  </style>
</head>

<body>
  <script>
    document.onclick = function (e) {
      var divs = document.createElement('div')
      var x = e.pageX
      var y = e.pageY
      divs.style.left = x - 10 + 'px'
      divs.style.top = y - 10 + 'px'
      document.body.appendChild(divs)
    }

  </script>
</body>

</html>